entry: Deprecate shadow-type
authorTimm Bäder <mail@baedert.org>
Mon, 18 Jan 2016 11:46:18 +0000 (12:46 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 18 Jan 2016 11:53:53 +0000 (12:53 +0100)
Things like that should be handled using css. Also, the property value
is unused inside GtkEntry.

gtk/gtkentry.c

index 94e2856500393d7f035311f064b55afdbe0eeae2..967522c8577f6b2c718913130068f2a51d79f02c 100644 (file)
@@ -975,6 +975,9 @@ gtk_entry_class_init (GtkEntryClass *class)
    * Which kind of shadow to draw around the entry when
    * #GtkEntry:has-frame is set to %TRUE.
    *
+   * Deprecated: 3.20: Use CSS to determine the style of the border;
+   *     the value of this style property is ignored.
+   *
    * Since: 2.12
    */
   entry_props[PROP_SHADOW_TYPE] =
@@ -983,7 +986,7 @@ gtk_entry_class_init (GtkEntryClass *class)
                          P_("Which kind of shadow to draw around the entry when has-frame is set"),
                          GTK_TYPE_SHADOW_TYPE,
                          GTK_SHADOW_IN,
-                         GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
+                         GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY|G_PARAM_DEPRECATED);
 
   /**
    * GtkEntry:overwrite-mode: